// page/index/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    repair: [
      {
        "id": 1,
        "content": "某类维修1",
        "picUrl": "/images/index/ico1.png"
      },
      {
        "id": 2,
        "content": "某类维修2",
        "picUrl": "/images/index/ico1.png"
      },
      {

        "id": 3,
        "content": "某类维修3",
        "picUrl": "/images/index/ico1.png"
      },
      {

        "id": 4,
        "content": "某类维修4",
        "picUrl": "/images/index/ico1.png"
      },
      {
        "id": 5,
        "content": "某类维修5",
        "picUrl": "/images/index/ico1.png"
      },
      {
        "id": 6,
        "content": "某类维修6",
        "picUrl": "/images/index/ico1.png"
      },
      {
        "id": 7,
        "content": "某类维修7",
        "picUrl": "/images/index/ico1.png"
      },
      {
        "id": 8,
        "content": "某类维修8",
        "picUrl": "/images/index/ico1.png"
      },
      {
        "id": 9,
        "content": "某类维修9",
        "picUrl": "/images/index/ico1.png"
      },
      {
        "id": 10,
        "content": "某类维修10",
        "picUrl": "/images/index/ico1.png"
      },
      {
        "id": 11,
        "content": "某类维修11",
        "picUrl": "/images/index/ico1.png"
      }
    ]
  },
  bindView: function(ev) {
    let item = ev.currentTarget.dataset.item
    wx:wx.navigateTo({
      url: '/page/detail/detail?id='+item.id+'&title='+item.content+''
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
  
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
  
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
  
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
  
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  
  }
})